|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
XHTMLMP - Mod_rewrite
PHP Code:
help this is not working it doesnt require sessions its not creating mysite.com/my.html |
|
#2
|
||||
|
||||
|
What do you mean that it is not creating my.html??
You have to write the links themselves. You visit the link: mysite.com/my.html and hopefully all the variables will be available to you are you have detailed in your rule. Moving this to Apache as it is rewrite specific
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure # Any form of employment is strictly prohibited ...... __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. __________________ |
|
#3
|
|||
|
|||
|
mysite dot com/myd/sidworld/web/index.php?action=gviewtpc&tid=31
tid = topic id Options +FollowSymLinks RewriteEngine On RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$ index.php?action=gviewtpc&tid=$1 [L] can some 1 please help me mysite dot com/myd/sidworld/web/index.php/action/gviewtpc/31 but the problem is its going to login page this action doesnt require session its for guest users |
|
#4
|
||||
|
||||
|
Quote:
I found that if you only use ([^/]*) in your re-URL like you did here: Code:
RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$ It Clashes with other URLS on your site like: http://yoursite.com/beach/dead/cool.html and therefore doesn't work and sends back a 500 or 404 error page! What error are you getting when you go to http://yoursite.com/$tid/bla/bla.html? |
|
#5
|
|||
|
|||
|
Options +FollowSymLinks
RewriteEngine On RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$ index.php?action=gviewtpc&tid=$1 [L] thanks for replying i have added the above script to htaccess 127.0.0.1/myd/sidworld/web/gviewtpc/31 if i use this url i get object not found Error 404 mysite url 127.0.0.1/myd/sidworld/web/index.php?action=gviewtpc&tid=31 |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > XHTMLMP - Mod_rewrite |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|