If RewriteRule ^wacko\.html$ index.html [L] http://www.directorylister.info/wacko.html doesn't work...then start hunting for a new web host!!! That wacko URL would show da index page.
You are teh n00b! Obviously your code is wrong! Check here: http://www.stevenhargrove.com/redirect-web-pages/ Says code should be: Redirect 301 /old/old.html http://www.you.com/new.html Code (markup): ?
Hey peeps im in need of some help as i cant afford to pay anyone anymore to work on my website I know little about web development but am learning pretty quick... here is my dielmma... my website pages eg... http://www.domain.com/listing.php?Catid=3&cityname=16 where cityname=16 sydney where Catid=3 Food http://www.mepg.com.au/Food/Sydney Is this Possible whith this method in this thread or is there another i have to look at Please any help is greatly appreciated Thankyou in advance and VWD Nintendo for your contributions
The numbers would have to be in the URL, and you would have to know php enough to search and replace to get rid of spaces and special characters.
if it is easy enough and/or if its possible to do could you please do one line of example text if not no harm ill keep searching im constantly learning as i search thanks once again
mepg.com.au/3/Food/16/Sydney Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^([^.]+)/([^.]+)/([^.]+)/([^.]+)$ listing.php?Catid=$1&cityname=$3 [L]
Once again i appreciate your help Nintendo ive used the above code and does not work please dont get me wrong im still reading and learning and belive me the code u used above is way advanced compared to what im up to but getting there my site does accept the mod_rewrite (test on page one worked) if it helps and only if u dont mind (it might help others aswell as me) my web address is http://www.mepg.com.au/ click on the city/cuisine buttons to get an idea for what im up against Thanks in advance EGGENZ
It doesn't change the links. You would have to know how to for example make the links link to mepg.com.au/3/Food/16/Sydney
well i can honestly say im confused i cant even get the most basic code to work (exclude. test code) im still looking and reading and with time ill get there... but still if anyone has any ideas or help its much appreciated.. PS I liked the sound of expats idea (e.g. mypage.php?subject=How_to_do_mod_rewrite RewriteRule subject_([A-zA-Z_]+).htm page_detail.php?subject=$1 [L] could give you a translatable static htm like mmydomain.xxx/subject_how_to_do_mod_rewrite.htm in your php you can than look up the content for the titel instead of using page id ) but the basics arnt working for me yet so dont worry im not getting ahead of myself its for future use all the best EGGENZ
Hey im back ive been reading heaps and found tons of informaton but one mod i was reading (the one i hope) recomended me to edit the httpd.conf file. 1 problem i dont/cant find one as the site im reading off has no forum and this is the only decent forum ive found on the topic (and helpful) could someone please help me with httpd.conf file should i create one??? is it a text file ??? thankyou V/M [L]
http://www.mepg.com.au/.htaccess Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^([^.]+)\.html$ listing.php?cityname=$1 [L] and see if http://www.mepg.com.au/6.html then works. If that works, then we can work on adding the words to the URL.
I have a host with ssl certificate and dedicated IP. I need some help on the following example. http://www.domain_name.com/folder/ rewrite to 404.php https://www.domain_name.com/folder/ rewrite to 404.php http://101.101.101.101/ rewrite to forbidden.php https://101.101.101.101/ rewrite to forbidden.php Thanks for your advice.
I need help turning this: /index.php?Action=Show&Node=14219061&ItemPage=1 Code (markup): into this: /keyword-nodename.php Code (markup): I've honestly tried to read this stuff, but I'm old and feeble and I am just confused. Any help would be GREATLY appreciated.
movingconcierge, not exactly sure but is this what you want? RewriteEngine on RewriteBase / RewriteRule ^(.+)-(.+)\.php$ index.php?Action=$1&Node=$2&ItemPage=1 [L] Code (markup): Or maybe this: RewriteEngine on RewriteBase / RewriteRule ^keyword-(.+)\.php$ index.php?Action=Show&Node=$1&ItemPage=1 [NC,L] Code (markup):
Thanks, krt. When I went into my .htacess file I found this: AddType application/x-httpd-php5 php RewriteEngine On RewriteRule ^index.html$ index.php RewriteRule ^(.*)/(.*)-search-(.*)-(.*)-(.*).html index.php?Operation=ItemSearch&SearchIndex=$1&$2=$3&Sort=$4&ItemPage=$5 [QSA,L] RewriteRule ^(.*)/(.*)-search-(.*)-(.*).html index.php?Operation=ItemSearch&SearchIndex=$1&$2=$3&Sort=$4 [QSA,L] RewriteRule ^(.*)/(.*)-search-(.*).html index.php?Operation=ItemSearch&SearchIndex=$1&$2=$3 [QSA,L] RewriteRule ^(.*)/browse-(.*)-(.*)-(.*).html index.php?Operation=ItemSearch&SearchIndex=$1&BrowseNode=$2&Sort=$3&ItemPage=$4 [QSA,L] RewriteRule ^(.*)/browse-(.*)-(.*).html index.php?Operation=ItemSearch&SearchIndex=$1&BrowseNode=$2&Sort=$3 [QSA,L] RewriteRule ^(.*)/browse-(.*).html index.php?Operation=ItemSearch&SearchIndex=$1&BrowseNode=$2 [QSA,L] RewriteRule ^(.*)/(.*).html index.php?Operation=ItemLookup&ItemId=$1 [QSA,L] RewriteRule ^(.*).html?$ index.php?SearchIndex=$1 [QSA,L] Code (markup):