Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Resolved] Problem with Fancy URLs
#1
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
Reply
#2
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.
Reply
#3
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
Reply
#4
Do you have a link to your website that I can see?
Todo arde si le aplicas la chispa adecuada.
Reply
#5
My web site : netPlume
Français et éternel débutant
French and eternal beginner
Reply
#6
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.
Reply
#7
Thank's yurifanboy !
You are right ! I have recreate all my links and now everything is alright !
Smile
Français et éternel débutant
French and eternal beginner
Reply




Users browsing this thread: 1 Guest(s)