Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Apart from working on .htaccess and enabling mod rewrite

How do I change the links in the script?

11:21 am on Dec 6, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 17, 2007
votes: 0

I am done with .htaccess file and have enabled mod_rewite.

I have understood what regular expressions are and how to create a rule.

Now I assume that I have to change the links in the script as well....(not sure though).

The links are dynamically generated. Each link opens up to a page where there are more links and those are also dynamically generated. And this goes on. Now this has become very confusing. How do I go about this?

Moreover, on each page, all the links are not related to a single php file. I mean the code to dispay the links at the different parts of a page does not belong to a single file......those are from separate files.....these files are 'included'. So do I need to change the links in each of these files?

12:37 pm on Dec 6, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
votes: 0

The URLs your visitors "see" are those in the links that they click on the pages of your site.

So yes, the links need to show the URL that you want the content to be known by.

The rules in ModRewrite simply take the URL request and translate it into where to get the content from within the server - without revealing what that location actually is.