- This topic is empty.
-
AuthorPosts
-
September 11, 2011 at 3:45 pm #86974
Gwidaz
MemberOk,now i felt like idiot..
Ok so what im doing is:
1.I copy this code below and paste into htaccess
RewriteEngine On
RewriteRule ^about(/?)$ /page/about.php [NC,L]2. Puting htaccess into root directory
3.Going to footer file and then set a href=”page/about.php”Tell me if im doing smth wrong again..
September 11, 2011 at 3:48 pm #86975chrisburton
Participant@Gwidaz – Almost. Do the following
1. Copy
RewriteEngine On
RewriteRule ^about(/?)$ /page/about.php [NC,L]2. Paste in your .htaccess file
3. Put .htaccess file in the root directory
4. Link to the page as sitename.com/about
September 11, 2011 at 3:53 pm #86976Gwidaz
MemberFinally!!!! Thanks man a lot for your patiance!!
There you go..sorted..I think we need to put this easy lesson for everybody in category SNIPPETS? What you think?
September 11, 2011 at 3:56 pm #86977chrisburton
ParticipantGlad you got it working. I’ll ask to submit it
September 11, 2011 at 4:05 pm #86978Gwidaz
MemberGood job!
September 11, 2011 at 4:09 pm #86979Gwidaz
MemberOh,btw..There is still error if you pressing same link twice..
In my website is footer with all these links (about,faq..atc) and then i pressed about
i havemyveb.com/about/
and if i will press it again i got
myweb.com/about/about/
September 11, 2011 at 4:11 pm #86980chrisburton
ParticipantHow are you able to click the link more than once without it going to a different page?
Do you have another .htaccess file in the root directory?
September 11, 2011 at 4:51 pm #86981Gwidaz
MemberNo..You see if im going to about page i have same footer anyway,so i can click that about again and if im clicking that twice i get added about/ again in my url..
September 11, 2011 at 4:55 pm #86982chrisburton
ParticipantI’m not getting that issue. Are you using WordPress?
September 11, 2011 at 5:01 pm #86983Gwidaz
MemberNo..well maybe problem is that im including footer to all files (about,faq atc)?
September 11, 2011 at 5:04 pm #86984chrisburton
ParticipantPaste your footer
September 11, 2011 at 5:10 pm #86985September 11, 2011 at 5:13 pm #86986chrisburton
ParticipantSeptember 11, 2011 at 5:16 pm #86987Gwidaz
MemberThanks man,thats just brilliant right now! :)
September 11, 2011 at 5:17 pm #86988chrisburton
ParticipantEverything works?
-
AuthorPosts
- The forum ‘Other’ is closed to new topics and replies.
