Posts: 55
Threads: 11
Joined: May 2012
2012-06-01, 18:43:18
(This post was last modified: 2012-06-22, 15:49:21 by ABehrends.)
Hello !
I french and my english is not very good, so sorry.
I have a problem with URL Rewriting. I have activated the Fancy URLs. I have a .htaccess file. For the page that appears in the menu, rewrite URLs works perfectly well. But for pages that do not appear in the menu, the pages that are called by internal links, I always have a URL with
index.php? Id =.
Here are the contents of my .htaccess file :
Code:
RewriteEngine on
# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
What could be the problem?
Thank you for your help
Français et éternel débutant
French and eternal beginner
Posts: 89
Threads: 6
Joined: Mar 2011
2012-06-05, 12:51:18
(This post was last modified: 2012-06-05, 13:11:24 by Bob.)
If you are going to your pages by entering, for example, "http://localhost/test/index.php?id=gsdg" into your browser's address bar, this still works with URL rewriting enabled. The URL's http://localhost/test/index.php?id=gsdg and http://localhost/test/gsdg both link to the same page. Does this problem happen when you click the view button on the page you are currently editing and it takes to a new tab to view the page? I don't know if this helps but without providing us a link to your site and us being able to see the problem, it is hard to diagnose and then then prescribe a solution.
Todo arde si le aplicas la chispa adecuada.
Posts: 55
Threads: 11
Joined: May 2012
You're right
yurifanboy.
Quote:Does this problem happen when you click the view button on the page you are currently editing
When I change my page in the
administration, when I use the
View button, the URL is correct, there is not:
index.php?id= in the URL.
This is when I view my website that this syntax is displayed.
Where does this error URL rewriting?
Français et éternel débutant
French and eternal beginner
Posts: 89
Threads: 6
Joined: Mar 2011
Do you have a link to your website that I can see?
Todo arde si le aplicas la chispa adecuada.
Posts: 55
Threads: 11
Joined: May 2012
Français et éternel débutant
French and eternal beginner
Posts: 89
Threads: 6
Joined: Mar 2011
2012-06-20, 08:59:29
(This post was last modified: 2012-06-20, 09:00:45 by Bob.)
What most likely happened is you created a link on the page before you turned fancy urls on. After turning fancy urls on, you will have to manually update the page link by relinking it. GetSimple will not automatically update all your links before you activated fancy urls.
1.Unlink the link
2.Delete the text that was previously a link
3.Retyple the text
4. Create the link again
You may be able to manually adjust the link from the HTML source button.
Todo arde si le aplicas la chispa adecuada.
Posts: 55
Threads: 11
Joined: May 2012
Thank's yurifanboy !
You are right ! I have recreate all my links and now everything is alright !
Français et éternel débutant
French and eternal beginner